﻿using AntMovement.Core.Entity;
using AntMovement.Core.Logic.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AntMovement.Core.Logic
{
    public class NormalClose : INormal
    {
        private DI _di;
        public NormalClose(DI di)
        {
            _di = di;
        }

        public bool Execute()
        {
            if (_di != null)
            {
                return !_di.Status;
            }
            throw new Exception("对象为空");
        }
    }
}
